Imports Microsoft.VisualBasic

Namespace MyDAO
    Public Class MyCompositeCondition
        Inherits MyDataConditionBase

        Public Condition1 As MyDataConditionBase
        Public op As MyLogicalOperator
        Public Condition2 As MyDataConditionBase

        Public Sub New(ByVal condition1 As MyDataConditionBase, ByVal op As MyLogicalOperator, ByVal condition2 As MyDataConditionBase)
            Me.Condition1 = condition1
            Me.op = op
            Me.Condition2 = condition2
        End Sub

        Public Overrides Function ToString() As String
            Return String.Format("{0} {1} {2}", Me.Condition1, Me.op, Me.Condition2)

        End Function
    End Class
End Namespace